package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 用户浏览足迹
 * </p>
 *
 * @author leehao
 * @since 2019-05-16
 */
@TableName("c_footprint_info")
public class CFootprintInfo extends Model<CFootprintInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 店铺id
     */
    private Integer bid;

    /**
     * 用户id
     */
    private Integer cid;

    /**
     * 商品id
     */
    private Integer proId;

    /**
     * 商品编码
     */
    private String proCode;

    /**
     * 商品名称
     */
    private String proName;

    /**
     * 商品价格
     */
    private BigDecimal proPrice;

    /**
     * 图片
     */
    private String proUrl;

    /**
     * 描述
     */
    private String descVal;

    private Date createTime;

    /**
     * 单位
     */
    private String proUnit;

    /**
     * 用户浏览时间 用来查询
     */
    @TableField(exist = false)
    private Date times;

    /**
     * 用户浏览记录的list
     */
    @TableField(exist = false)
    private List<CFootprintInfo> footList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }
    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }
    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }
    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }
    public BigDecimal getProPrice() {
        return proPrice;
    }

    public void setProPrice(BigDecimal proPrice) {
        this.proPrice = proPrice;
    }
    public String getProUrl() {
        return proUrl;
    }

    public void setProUrl(String proUrl) {
        this.proUrl = proUrl;
    }
    public String getDescVal() {
        return descVal;
    }

    public void setDescVal(String descVal) {
        this.descVal = descVal;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getProUnit() {
        return proUnit;
    }

    public void setProUnit(String proUnit) {
        this.proUnit = proUnit;
    }

    public Date getTimes() {
        return times;
    }

    public void setTimes(Date times) {
        this.times = times;
    }

    public List<CFootprintInfo> getFootList() {
        return footList;
    }

    public void setFootList(List<CFootprintInfo> footList) {
        this.footList = footList;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CFootprintInfo{" +
        "id=" + id +
        ", bid=" + bid +
        ", cid=" + cid +
        ", proId=" + proId +
        ", proCode=" + proCode +
        ", proName=" + proName +
        ", proPrice=" + proPrice +
        ", proUrl=" + proUrl +
        ", descVal=" + descVal +
        ", createTime=" + createTime +
        ", proUnit=" + proUnit +
        "}";
    }
}
